package cn.hu.basic.mapper;

import cn.hu.basic.query.BaseQuery;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BaseMapper<T> {
    T findById(Long id);
    List<T> findAll();
    void add(T t);
    void delete(Long id);
    void update(T t);
    Long queryCount(BaseQuery query);
    List<T> queryData(BaseQuery query);
    void patchDelete(List<Long> ids);
}
